package model

type SystemRole struct {
	Model
	Name   string
	Pid    uint
	Status uint
}

func (model *SystemRole) TableName() string {
	return "t_system_role"
}

type SystemRoleData struct {
	Data      []SystemRole `json:"data"`
	TotalRows int64        `json:"total_rows"`
}
type SystemRoleTo struct {
	Model
	Name       string
	Pid        uint
	Status     uint
	SystemRole *SystemRole `json:"system_role" gorm:"foreignKey:Id;references:Pid"`
}

func (model *SystemRoleTo) TableName() string {
	return "t_system_role"
}
